<template>
    <div class="detail">
        <div class="header">
            <span>{{title}}</span>
            <i class="el-icon-info"></i>
        </div>
        <div class="content">{{count}}</div>
        <div class="charts">
            <slot name="charts"></slot>
        </div>
        <div class="footer">
            <slot name="footer"></slot>
        </div>
    </div>
</template>

<script>
export default {
    name:"Detail",
    props:['title','count'],
}
</script>

<style scoped>
    .header{
        display: flex;
        justify-content: space-between; /* 左右布局 */
        font-size: 18px;
        color: #d9d9d9;
    }
    .content{
        font-size: 28px;
        padding: 10px 0;
    }
    .charts{
        height: 50px;
    }
    .footer{
        border-top: 1px solid #d9d9d9;
        padding-top: 5px;
    }
</style>